#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "globals.h"

extern FILE *yyin;

int main(int argc, char *argv[]) {

	/*
	 * Inicializando valores
	 */
	symbol_table_counter = 0;
	var_index = 0;
	int_found = 0;
	id_found = 0;
	current_byte = 0;
	reducing_else = 0;
	

	if (argc != 2) {
		fprintf(stderr, "Erro - Arquivo de entrada nao especificado\n");
		return 1;
	}

	yyin = fopen(argv[1], "r");
	yyparse();
	return 0;
}

